package com.common.transformer;

import com.applicationLayer.formbean.RegistrationForm;
import com.common.entity.Registration;

public class RegistrationTransformer {

	
	/*******************************
	 * Transformer
	 *******************************/
	public static Registration RegistrationForm_TO_Registration(RegistrationForm registrationForm){
		Registration registration=new Registration();
		registration.setId_path(registrationForm.getId_path());
		registration.setId_covoitureur(registrationForm.getId_covoitureur());
		registration.setState(registrationForm.getState());
		return registration;
	}

	public static RegistrationForm Registration_TO_RegistrationForm(Registration r) {
		RegistrationForm registrationForm=new RegistrationForm();
		registrationForm.setId_path(r.getId_path());
		registrationForm.setId_covoitureur(r.getId_covoitureur());
		registrationForm.setState(r.getState());
		return registrationForm;	}
}
